package com.example.springboott1.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.springboott1.entity.User;
import org.apache.ibatis.annotations.*;

import java.util.List;

//@Mapper
public interface UserMapper extends BaseMapper<User>{}

//    @Select("select * from sys_user")
//    List<User> findAll();
//
//    @Insert("INSERT INTO sys_user(username,password,nickname,email,phone,address)VALUES" +
//            "(#{username},#{password},#{nickname},#{email},#{phone},#{address});")
//    int insert(User user);
//
//    int update(User user);
//
//    @Delete("delete from sys_user where id =#{id}")
//    int deleteById(@Param("id") Integer id);
//
//    @Select("SELECT * from sys_user where username like concat('%',#{username},'%') or phone like concat('%',#{phone},'%') or address like concat('%',#{address},'%')")
//    List<User> findST(String username,String phone,String address);

